/*
 * $Id: Coordinate.java 24 2009-03-31 23:40:10Z aaron.day $
 */
package org.crazydays.gameplan.map;


import java.io.Serializable;

/**
 * Coordinate is a simple x,y coordinate on a map.
 */
public class Coordinate
        implements Serializable
{
	/** serial version uid */
	public final static long serialVersionUID =
	        "$Id: Coordinate.java 24 2009-03-31 23:40:10Z aaron.day $"
	                .hashCode();

	/** x */
	protected int x;

	/** y */
	protected int y;

	/**
	 * Coordinate constructor.
	 */
	public Coordinate()
	{
	}

	/**
	 * Coordinate constructor.
	 * 
	 * @param x X
	 * @param y Y
	 */
	public Coordinate(int x, int y)
	{
		setX(x);
		setY(y);
	}

	/**
	 * Set x.
	 * 
	 * @param x X
	 */
	public void setX(int x)
	{
		this.x = x;
	}

	/**
	 * Get x.
	 * 
	 * @return X
	 */
	public int getX()
	{
		return x;
	}

	/**
	 * Set y.
	 * 
	 * @param y Y
	 */
	public void setY(int y)
	{
		this.y = y;
	}

	/**
	 * Get y.
	 * 
	 * @return Y
	 */
	public int getY()
	{
		return y;
	}
}
